<?php

namespace Addons\Kami;

use Common\Controller\Addon;

/*require_once(ONETHINK_ADDON_PATH . 'Kami/Common/function.php');*/

class KamiAddon extends Addon
{
    public $info = array(
        'name' => 'Kami',
        'title' => '卡密兑换插件',
        'description' => '安装后即可兑换卡密',
        'status' => 1,
        'author' => '想天--弄堂太少',
        'version' => '1.0'
    );

    public function install()
    {
        return true;
    }

    public function uninstall()
    {
        return true;
    }


    public function exchangeRcard($param)
    {

        $url=U('Rcard/Index/index');

            echo '  <li><a href='.$url.'><span
                                        class="glyphicon glyphicon-star"></span>&nbsp;&nbsp;卡密兑换</a>
                                </li>
';

    }
}